header {
    display:flex;
    justify-content: space-between;
    position: fixed;
    background-color: darkgrey;
    width: 100%;
}

html {
    display: flex;
    flex-direction: column;
}

body {
    width: 100dvw;
    height: 100dvh;
    max-width: 100%;
    max-height: 100%;
}

main {
    margin-top: 5%;
    display:flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0.2em 0;
}

select {
    margin: .5em 0;
}

form {
    width: 30dvw;
}

fieldset {
    display: flex;
    flex-direction: column;
}

.rightHeader {
    display: flex;
    flex-direction: column;
    width: 35%;
    margin-left: 5%;
}

.leftHeader {
    display: flex;
    width: 25%;
    align-items: center;
    justify-content: space-between;
}

.leftHeader img {
    width:50px;
    height: auto;
}

.inputRow {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
}

input {
    width: 10em;
}

.rightHeader {
    justify-content: space-around;
    margin: 0 5%;
}

.rightHeader {
    text-align: right;
}

#tableContainer {
    width: 100dvw;
    max-width: 100%;
    display:flex;
    align-items: center;
    justify-content: center;
}

table {
    display: flex;
    flex-direction: column;
}

#tableWindow {
    display: flex;
    height: 70dvh;
    overflow-y: scroll;
    justify-content: center;
}

tr {
    display: flex;
}

td, th {
    display: block;
    height: 35px;
    width: 5.5em;
    border: 1px solid black;
}

th[scope="col"] {
    display: flex;
    flex-direction: column;
}

#tableContainer button{ 
    height: 5%;
    width: 5%;
}

.past {
    background-color: rgb(175, 174, 174);
}

.free {
    background-color: rgb(161, 221, 126);
}

.busy{
    background-color: rgb(147, 85, 85);
}

.ownAppointment {
    background-color: rgb(154, 183, 238);
}

#popupBkgd {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(175, 174, 174, 0.409);
    position: absolute;
    width: 100%;
    max-height: calc(100dvh- 50px);
    height: calc(100dvh - 50px);
}

#popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: whitesmoke;
    width: 30dvw;
}

#popup p {
    margin: 0.25em 0 0.5em 0;
    text-align: center;
}

#popupMessage {
    margin-top: 3em;
}

#popup li{
    display: flex;
    justify-content: space-between;
    width:100%;
}

#bookingMessage {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 50dvh;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 10dvh;
}
